<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    const obj = { foo: 1 };
    const p = new Proxy(obj, {
      defineProperty(target, key, receiver) {
        return Reflect.defineProperty(target, key, receiver);
      },
    });

    console.log(p.foo);
    delete obj.foo;
    console.log(p.foo);
    console.log(obj);
  </script>
</html>
